﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace INSTA.BankApplication.DAL.Tests
{
    /// <summary>
    /// Incorrect class because it derives from DataMapper
    /// but is not decorated with a TableAttribute
    /// </summary>
    public class MockPersonWithoutTableAttribute : DataMapper
    {
        public MockPersonWithoutTableAttribute()
        {}

        public MockPersonWithoutTableAttribute(int id)
            : base(id)
        {}

        [Field(MockConstants.FIELDNAME_NAME)]
        public string Name { get; set; }

        [Field(MockConstants.FIELDNAME_FIRST_NAME)]
        public string FirstName { get; set; }

        [Field(MockConstants.FIELDNAME_YEAR_OF_BIRTH)]
        public int YearOfBirth { get; set; }
    }
}
